package net.hn.hnms.biz.support.group.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.hn.hnms.biz.support.group.domain.vo.AbscissdataAlarmListVo;
import net.hn.hnms.biz.support.group.domain.vo.AnchordataAlarmListVo;
import net.hn.hnms.biz.support.group.domain.vo.SupportdataAlarmListVo;
import net.hn.hnms.biz.support.group.service.GroupCJDYService;
import net.hn.hnms.sys.common.core.domain.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 公司端支架接口
 */
@Api(tags = {"集团端-冲击地压接口"})
@RestController
@RequestMapping("/group/cjdy")
public class GroupCJDYController {

    /**
     * 集团端冲击地压服务
     */
    @Resource
    private GroupCJDYService groupCJDYService;

    /**
     * 获取今日顶板离层报警列表
     */
    @ApiOperation("获取今日顶板离层报警列表")
    @GetMapping("getTodayAbscissdataAlarmList")
    public R<List<AbscissdataAlarmListVo>> getTodayAbscissdataAlarmList() {
        List<AbscissdataAlarmListVo> list = groupCJDYService.getTodayAbscissdataAlarmList();
        return R.ok(list);
    }
    /**
     * 获取今日锚杆索报警列表
     */
    @ApiOperation("获取今日锚杆索报警列表")
    @GetMapping("getTodayAnchordataAlarmList")
    public R<List<AnchordataAlarmListVo>> getTodayAnchordataAlarmList() {
        List<AnchordataAlarmListVo> list = groupCJDYService.getTodayAnchordataAlarmList();
        return R.ok(list);
    }
    /**
     * 获取今日支架报警列表
     */
    @ApiOperation("获取今日支架报警列表")
    @GetMapping("getTodaySupportdataAlarmList")
    public R<List<SupportdataAlarmListVo>> getTodaySupportdataAlarmList() {
        List<SupportdataAlarmListVo> list = groupCJDYService.getTodaySupportdataAlarmList();
        return R.ok(list);
    }
}
